PROJECT (MYSERVER)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -g -Wall -O0 -Wno-unused-variable -pthread")

SET(net_srcs 
base/timestamp.cpp
base/logging.cpp
base/logstream.cpp
net/Buffer.cc
net/EventLoop.cc
net/Channel.cc
net/Poller.cc
net/Timer.cc
net/TimerQueue.cc
net/EventLoopThread.cc
net/SocketsOps.cc
net/InetAddress.cc
net/Socket.cc
net/Acceptor.cc
net/TcpConnection.cc
net/TcpServer.cc
net/Connector.cc
net/TcpClient.cc
net/EventLoopThreadPool.cc
net/protocolstream.cc
)

SET(json_srcs
jsoncpp-0.5.0/json_reader.cpp
jsoncpp-0.5.0/json_value.cpp
jsoncpp-0.5.0/json_writer.cpp
)

SET(chat_server
chatserversrc/ClientSession.cpp
chatserversrc/TcpSession.cpp
chatserversrc/IMServer.cpp
chatserversrc/main.cpp
)


MESSAGE(STATUS "This is BINARY dir" ${PROJECT_BINARY_DIR})
MESSAGE(STATUS "This is SOURCE dir" ${PROJECT_SOURCE_DIR})
ADD_EXECUTABLE(chatserver ${net_srcs} ${chat_server} ${json_srcs})
#ADD_EXECUTABLE(client ${net_srcs} ${net_test2})